package goiot.dto;

import java.util.Map;

public class CmdInvokeDTO {
	private String traceId;
	private String functionId;
	private Map<String, ?> data;
	/**
	 * 是否异步执行，为"true"时将覆盖物模型的配置
	 */
	private String async;
	/**
	 * 同步调用时指定timeout可以覆盖默认超时时间
	 */
	private Integer timout;

	public String getTraceId() {
		return traceId;
	}

	public void setTraceId(String traceId) {
		this.traceId = traceId;
	}

	public String getFunctionId() {
		return functionId;
	}

	public void setFunctionId(String functionId) {
		this.functionId = functionId;
	}

	public Map<String, ?> getData() {
		return data;
	}

	public void setData(Map<String, ?> data) {
		this.data = data;
	}

	public String getAsync() {
		return async;
	}

	public void setAsync(String async) {
		this.async = async;
	}

	public Integer getTimout() {
		return timout;
	}

	public void setTimout(Integer timout) {
		this.timout = timout;
	}

	@Override
	public String toString() {
		return super.toString() + " [traceId=" + traceId + ", functionId=" + functionId + ", data=" + data + ", async=" + async
				+ ", timout=" + timout + "]";
	}

}
